home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / ra_111_2.zip / STRUCT.111 < prev    next >
Text File  |  1992-01-25  |  18KB  |  516 lines

  1. (* File "STRUCT.111" *)
  2.  
  3. (* Structures document for RemoteAccess 1.10/1.11/Noncommercial. *)
  4. (* May be freely distributed in unmodified form and used         *)
  5. (* by third-party developers. This document is Copyright         *)
  6. (* (C) 1991 Andrew Milner and Continental Software.              *)
  7.  
  8.  
  9. type
  10.   AskType        = (Yes, No, Ask, Only);
  11.   VideoType      = (Auto, Short, Long);
  12.   MsgType        = (LocalMail, NetMail, EchoMail);
  13.   MsgKindsType   = (Both, Private, Public, ROnly);
  14.   OrphanType     = (Ignore, Create, Kill);
  15.   FlagType       = array[1..4] of Byte;
  16.   Time           = String[5];
  17.   Date           = String[8];
  18.   LongDate       = String[9];
  19.  
  20.   NetAddress     = record
  21.                      Zone,
  22.                      Net,
  23.                      Node,
  24.                      Point          : Word;
  25.                    end;
  26.  
  27.   LANGUAGErecord = record
  28.                      Name           : String[20];
  29.                      Attribute      : Byte;
  30.                      DefName,
  31.                      MenuPath,
  32.                      TextPath,
  33.                      QuesPath       : String[60];
  34.                      FreeSpace      : Array[1..200] of Byte;
  35.                    end;
  36.  
  37.   MSGINFOrecord  = record
  38.                      LowMsg,
  39.                      HighMsg,
  40.                      TotalMsgs      : Word;
  41.                      TotalOnBoard   : array[1..200] of Word;
  42.                    end;
  43.  
  44.   MSGIDXrecord   = record
  45.                      MsgNum         : Integer;
  46.                      Board          : Byte;
  47.                    end;
  48.  
  49.   MSGTOIDXrecord = String[35];
  50.  
  51.   MSGHDRrecord   = record
  52.                      MsgNum         : Integer;
  53.                      PrevReply,
  54.                      NextReply,
  55.                      TimesRead      : Word;
  56.                      StartBlock     : Word;
  57.                      NumBlocks,
  58.                      DestNet,
  59.                      DestNode,
  60.                      OrigNet,
  61.                      OrigNode       : Word;
  62.                      DestZone,
  63.                      OrigZone       : Byte;
  64.                      Cost           : Word;
  65.                      MsgAttr,
  66.                      NetAttr,
  67.                      Board          : Byte;
  68.                      PostTime       : Time;
  69.                      PostDate       : Date;
  70.                      WhoTo,
  71.                      WhoFrom        : MSGTOIDXrecord;
  72.                      Subject        : String[72];
  73.                    end;
  74.  
  75.   MSGTXTrecord   = String[255];
  76.  
  77.   USERONrecord   = record
  78.                      Name,
  79.                      Handle         : MSGTOIDXrecord;
  80.                      Line           : Byte;
  81.                      Baud           : Word;
  82.                      City           : String[25];
  83.                      DoNotDisturb   : Boolean;
  84.                      Status         : Byte;
  85.                      Attribute      : Byte;
  86.                    end;
  87.  
  88.                    { Status byte - 0 : Browsing (in a menu)
  89.                                    1 : Uploading/downloading
  90.                                    2 : Reading/posting messages
  91.                                    3 : In a door/external utility
  92.                                    4 : Chatting with sysop
  93.                                    5 : Answering questionnaire 
  94.                                    6 : System ready (0=busy)
  95.  
  96.                      Attribute   - Bit 0 : Hidden }
  97.  
  98.   LASTCALLrecord = record
  99.                      Line           : Byte;
  100.                      Name,
  101.                      Handle         : MSGTOIDXrecord;
  102.                      City           : String[25];
  103.                      Baud           : Word;
  104.                      Times          : LongInt;
  105.                      LogOn          : String[5];
  106.                      LogOff         : String[5];
  107.                      Attribute      : Byte;
  108.                    end;
  109.  
  110.                 { Attribute - Bit 0 : Hidden }
  111.  
  112.   LASTREADrecord = array[1..200] of Word;
  113.  
  114.   COMBINEDrecord = array[1..25] of Byte;
  115.  
  116.   USERSIDXrecord = record
  117.                      NameCRC32,
  118.                      HandleCRC32    : LongInt;
  119.                    end;
  120.  
  121.   USERSXIrecord  = record
  122.                      Handle         : String[35];
  123.                      Comment        : String[80];
  124.                      FirstDate      : Date;
  125.                      CombinedInfo   : COMBINEDrecord;
  126.                      BirthDate,
  127.                      SubDate        : Date;
  128.                      ScreenWidth,
  129.                      MsgArea,
  130.                      FileArea,
  131.                      Language,
  132.                      DateFormat     : Byte;      
  133.                      ForwardTo      : String[35];
  134.                      ExtraSpace     : Array[1..43] of Byte;
  135.                    end;
  136.  
  137.   USERSrecord    = record
  138.                      Name           : MSGTOIDXrecord;
  139.                      Location       : String[25];
  140.                      Password       : String[15];
  141.                      DataPhone,
  142.                      VoicePhone     : String[12];
  143.                      LastTime       : Time;
  144.                      LastDate       : Date;
  145.                      Attribute      : Byte;
  146.  
  147.                       { Bit 0 : Deleted
  148.                             1 : Clear screen
  149.                             2 : More prompt
  150.                             3 : ANSI
  151.                             4 : No-kill
  152.                             5 : Xfer priority
  153.                             6 : Full screen msg editor
  154.                             7 : Quiet mode }
  155.  
  156.                      Flags          : FlagType;
  157.                      Credit,
  158.                      Pending        : Word;
  159.                      MsgsPosted,
  160.                      LastRead,
  161.                      Security,
  162.                      NoCalls,
  163.                      Uploads,
  164.                      Downloads,
  165.                      UploadsK,
  166.                      DownloadsK     : Word;
  167.                      TodayK,
  168.                      Elapsed        : Integer;
  169.                      ScreenLength   : Word;
  170.                      LastPwdChange,
  171.                      Attribute2,
  172.  
  173.                       { Bit 0 : Hot-keys
  174.                             1 : AVT/0
  175.                             2 : Full screen message viewer
  176.                             3 : Hidden from userlist }
  177.  
  178.  
  179.                      Group          : Byte;
  180.                      XIrecord       : Word;
  181.                      ExtraSpace     : array[1..3] of Byte;
  182.                    end;
  183.  
  184.   SYSINFOrecord  = record
  185.                      TotalCalls     : LongInt;
  186.                      LastCaller     : MSGTOIDXrecord;
  187.                      ExtraSpace     : array[1..128] of Byte;
  188.                    end;
  189.  
  190.   TIMELOGrecord  = record
  191.                      StartDate      : Date;
  192.                      BusyPerHour    : array[0..23] of Word;
  193.                      BusyPerDay     : array[0..6] of Word;
  194.                    end;
  195.  
  196.   MNUrecord      = record
  197.                      Typ            : Byte;
  198.                      Security       : Word;
  199.                      Flags          : FlagType;
  200.                      Display        : String[75];
  201.                      HotKey         : Char;
  202.                      MiscData       : String[80];
  203.                      Foreground,
  204.                      Background     : Byte;
  205.                    end;
  206.  
  207.   EVENTrecord    = record
  208.                      Status         : Byte; { 0=Deleted 1=Enabled 2=Disabled }
  209.                      StartTime      : Time;
  210.                      ErrorLevel     : Byte;
  211.                      Days           : Byte;
  212.                      Forced         : Boolean;
  213.                      LastTimeRun    : Date;
  214.                    end;
  215.  
  216.   EVENTrecordArray = array[1..20] of EVENTrecord;
  217.  
  218.   MESSAGErecord  = record
  219.                      Name           : String[40];
  220.                      Typ            : MsgType;
  221.                      MsgKinds       : MsgKindsType;
  222.                      Attribute      : Byte;
  223.  
  224.                       { Bit 0 : Enable EchoInfo
  225.                             1 : Combined access
  226.                             2 :